package com.oracle.Service.impl;

import com.github.pagehelper.Page;
import com.oracle.pojo.Book;
import com.oracle.pojo.vo.BookVo;

import java.util.List;

public interface BookService{

    int down(Integer bid);

    int up(Integer bid);

    String addBook(Book book);

    Page<Book> listBooks(Integer currentPage, Integer pageSize, BookVo bookVo);

    Page<Book> listBooks_All(Integer currentPage, Integer pageSize, BookVo bookVo);

    String updateByBid(Book book);

    List<Book> selectBooksByNumOrder();

    Book seleteBookbyId(Book book);

    List<Book> selectBooksByCid(Integer cid);
}
